					<div class="product">
						<div class="url_top">
							<a href="<?=$rooturl?><?=$list['1']['alias'];?>.html"><?=$list['1']['ten_'.$lang];?></a> > 
                            <a href="<?=$rooturl?><?=$list['18']['alias']?>.html">Sản phẩm hot</a>
						</div>
						<div class="list_record">
							<ul>
								<?
									$i=0;
									$sanpham = $t->get_by_order("sanpham",-1,1," AND hot=0 AND idmenu=1 and 1 = (select anhien from sanpham_menu where id = 1)  order by id desc");
									while($row_sp=mysql_fetch_assoc($sanpham)){
										$i++;
										
										$idloai=$row_sp['idloai'];
										$loai=$t->get_by_thutu("sanpham_loai",$idloai);
										$row_loai=mysql_fetch_assoc($loai);
										if($row_loai['ten_'.$lang]=='') $row_loai['ten_'.$lang]='-';
											
										$idchungloai=$row_sp['idcl'];
										$chungloai=$t->get_by_thutu("sanpham_chungloai",$idchungloai);
										$row_chungloai=mysql_fetch_assoc($chungloai);
										if($row_chungloai['ten_'.$lang]=='') $row_chungloai['ten_'.$lang]='-';
											
										$idroot=$row_sp['idroot'];
										$root=$t->get_by_thutu("sanpham_root",$idroot);
										$row_root=mysql_fetch_assoc($root);
										if($row_root['ten_'.$lang]=='') $row_root['ten_'.$lang]='-';
											
										$idmenu=$row_sp['idmenu'];
										$menu=$t->get_by_thutu("sanpham_menu",$idmenu);
										$row_menu=mysql_fetch_assoc($menu);
										if($row_menu['ten_'.$lang]=='') $row_menu['ten_'.$lang]='-';
										$images = explode(':*:',$row_sp['url_img']);
								?>
								<li <? if ($i==1 || $i%7==0) { echo "class='top'"; } ?>>
                                	<table cellpadding="0" cellspacing="0">
										<tr>
											<td>
									<a title="<?=$row_sp['ten_'.$lang]  ?>" href="<?=$rooturl?><?=$list['15']['alias']?>/<?=convert($row_menu['ten_'.$lang])?>/<?=convert($row_root['ten_'.$lang])?>/<?=convert($row_chungloai['ten_'.$lang])?>/<?=convert($row_loai['ten_'.$lang])?>/<?=convert($row_sp['ten_'.$lang])?>-<?=$row_sp['id']?>.html">
										<img src="<?=getUrlThumbnail($images[0])?>" />
									</a>
                                    		</td>
                                    	</tr>
                                    </table>
									<br/>
									<a href="<?=$rooturl?><?=$list['15']['alias']?>/<?=convert($row_menu['ten_'.$lang])?>/<?=convert($row_root['ten_'.$lang])?>/<?=convert($row_chungloai['ten_'.$lang])?>/<?=convert($row_loai['ten_'.$lang])?>/<?=convert($row_sp['ten_'.$lang])?>-<?=$row_sp['id']?>.html"><?=$row_sp['ten_'.$lang]?></a>
									<br/>
									<?php if ($row_sp['gia'] == 0): ?>
										<span>Liên hệ</span>
									<?php else: ?>
										<span><?=number_format($row_sp['gia'],0,".",",")?></span>
									<?php endif ?>
								</li>
								<?
									}
								?>
							</ul>
						</div>
					</div>